import request from "@/utils/request";

interface affiliateListParams {
  current?: number,
  pageSize?: number,
  email?: string,
  status?: number,
}
export const getAffiliate = (params:affiliateListParams) => {
  return request({
    url: "/api/affiliate/queryList",
    method: "get",
    params
  })
}
interface updateAffiliateParams {
  id?: number,
  status?:number,
}
export const updateAffiliate = (data:updateAffiliateParams) => {
  return request({
    url: "/api/affiliate/update",
    method: "post",
    data
  })
}
